import { observable, action } from 'mobx';
import { ListAdvanced, RouteLayout } from 'weaver-mobile-page';
import * as Apis from "../../api/customerApis";

export default class ContactRemarkItemsStore {
    comObj = {};
    @observable contactid = "";
    @observable remarks = [];
    @action
    doNew = (comObj) => {
        this.comObj = comObj;
        // console.log(comObj)
        this.contactid = comObj.props.params.contactid;
        this.init()
    }
    @action
    init = () => {
        this.remarks = [];
        Apis.getContactLogsRemark({ contactid: this.contactid }).then(result => {
            this.remarks = result.datas;
        })
    }
}